package com.qingsong.dto;

import com.qingsong.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.validation.constraints.Pattern;

/**
 * @author qingsong
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name = "用户分页DTO")
@Data
public class UserPageDTO extends PageDTO implements RE {
    @Schema(description = "登录账号")
    @Pattern(regexp = USERNAME_RE, message = USERNAME_RE_MSG)
    private String username;
    
    @Schema(description = "用户昵称")
    @Pattern(regexp = NICKNAME_RE, message = NICKNAME_RE_MSG)
    private String nickname;
    
    @Schema(description = "手机号码")
    private String phone;
}